﻿<%@ Page Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true"  CodeFile="index.aspx.cs" Inherits="_Default" Title="Homepage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<div id="left">
			<div id="left-header"></div>
			<div id="winner">
				<div class="big-title">Winner of competition</div>
                <div class="content">
				    <div id="comp-name"><asp:Label ID="lblCompetition" runat="server"></asp:Label></div>
				    <div id="first">
				        <div class="number">1</div>
					    <div class="name"><asp:HyperLink ID="btnNamePost1" runat="server"></asp:HyperLink></div>
				    </div>
				    <div class="clear"></div>
				    <div id="second">
					    <div class="number">2</div>
					    <div class="name"><asp:HyperLink ID="btnNamePost2" runat="server"></asp:HyperLink></div>
			        </div>
				    <div class="clear"></div>
				    <div id="third">
				        <div class="number">3</div>
					    <div class="name"><asp:HyperLink ID="btnNamePost3" runat="server"></asp:HyperLink></div>
				    </div>
			    <div class="clear"></div>
			    </div><!--End .content-->
			</div><!--End #winner-->
			<div id="left-footer"></div>
		</div><!--End #left-->

		<div id="primary">
			<div id="primary-header"></div>
			<div id="seminar">
				<div class="big-title">Seminars</div>
                   <asp:DataList ID="DataListSem" runat="server">
                   <ItemTemplate>
                   <div class="content">
                       <div class="image"><asp:HyperLink ID="HyperLinkImage" runat="server" 
                               ImageUrl='<%# "../"+Eval("image") %>' Width="166px" 
                               NavigateUrl='<%# "seminar_detail.aspx?id="+Eval("id") %>'>[HyperLink1]</asp:HyperLink></div>
					<div class="title"><asp:HyperLink ID="LinkButton1" runat="server" 
                            Text='<%# Eval("title") %>' 
                            NavigateUrl='<%# "seminar_detail.aspx?id="+Eval("id") %>'></asp:HyperLink></div>
					<p>
                        <asp:Label ID="LabelDesciptionSem" runat="server" Text='<%# Eval("description") %>'></asp:Label>
					</p>
					<div class="read-more"><asp:HyperLink ID="readMoreSem" runat="server" 
                            NavigateUrl='<%# "seminar_detail.aspx?id="+Eval("id") %>'>Read more...</asp:HyperLink></div>
				</div><!--End .content-->
				<div class="clear"></div>
				</ItemTemplate>
                   </asp:DataList>
			</div><!--End #seminar-->
			<div id="survey">
				<div class="big-title">Surveys</div>
				<div class="content">
					<img alt="survey" src="../images/survey.png"/>
                       <asp:DataList ID="DataListSur" runat="server">
                           <ItemTemplate>
                               <div class="post-wrapper">
						        <div class="post"><asp:HyperLink ID="LinkButton2" runat="server" 
                                           Text='<%# Eval("title") %>' 
                                        NavigateUrl='<%# "survey_detail.aspx?id="+Eval("id") %>'></asp:HyperLink></div>
						        <div class="date"><p>Create at:&nbsp;</p>
                                       <asp:Label ID="Label1" runat="server" 
                                           Text='<%# Eval("date") %>'></asp:Label></div>
						        <div class="join"><asp:HyperLink ID="LinkButton3" runat="server" 
                                        NavigateUrl='<%# "survey_detail.aspx?id="+Eval("id") %>'>Join now...</asp:HyperLink></div>
				        	</div><!--End .post-wrapper-->
                           </ItemTemplate>
                       </asp:DataList>
				</div><!--End .content-->
			</div><!--End #survey-->
			
			<div id="competition">
				<div class="big-title">Competitions</div>
				<div class="content">
					<img alt="competition" src="../images/competition.png"/>
                       <asp:DataList ID="DataListCom" runat="server">
                           <ItemTemplate>
                               <div class="post-wrapper">
						        <div class="post">
                                       <asp:HyperLink ID="LinkButton4" runat="server" Text='<%# Eval("title") %>' 
                                           NavigateUrl='<%# "competition_detail.aspx?id="+Eval("id") %>'></asp:HyperLink></div>
						        <div class="date"><p>Date:&nbsp;</p>
                                       <asp:Label ID="Label3" runat="server" Text='<%# Eval("sDate") %>'></asp:Label> 
                                    - <asp:Label ID="Label4" runat="server" Text='<%# Eval("eDate") %>'></asp:Label></div>
						        <div class="join">
                                       <asp:HyperLink ID="LinkButton5" runat="server" 
                                           NavigateUrl='<%# "competition_detail.aspx?id="+Eval("id") %>'>Read more...</asp:HyperLink></div>
					        </div><!--End .post-wrapper-->
                           </ItemTemplate>
                       </asp:DataList>	
				</div><!--End .content-->
			</div><!--End #competition-->
			<div class="clear"></div>
			<div id="primary-footer"></div>
		</div><!--End #primary-->
</asp:Content>
